const state = {
  0: {v: 0, text: '进件状态'},
  1: {v: 1, text: '提交初审'},
  2: {v: 2, text: '初审通过'},
  3: {v: 3, text: '初审拒绝'},
  4: {v: 4, text: '提交终审'},
  5: {v: 5, text: '终审通过'},
  6: {v: 6, text: '终审拒绝'},
  7: {v: 7, text: '生成合同'},
}
// 1 4 57

state[0].pass = state[1]

// 初审 通过/拒绝
state[1].pass = state[2]
state[1].reject = state[3]

state[2].pass = state[4]

state[3].pass = state[1]

// 终审  通过/拒绝
state[4].pass = state[5]
state[4].reject = state[6]

state[5].pass = state[7]

// state[6].pass = state[4]

exports.stateFlow = state

exports.waitingStatus = [1, 4]
exports.nonCommitStatus = [5, 7]